import request from '@/plugins/request';
//设备类型
export function companyType(data) {
    return request({
        url:'/api/v1/dic/dic_car_type/list',
        method: 'post',
        data
    });
}

//单位列表
export function companyList(data) {
    return request({
        url:'/api/web/org/page',
        method: 'get',
        params:{...data}
    });
}
//添加单位
export function companyAdd(data) {
    return request({
        url:'/api/web/org/add',
        method: 'post',
        data
    });
}
//修改单位
export function companyUpdate(data) {
    return request({
        url:'/api/web/org/update',
        method: 'post',
        data
    });
}

//删除单位
export function companyDel(data) {
    return request({
        url:'/api/web/org/delete',
        method: 'DELETE',
        params:{...data}
    });
}
//查看项目详情
export function companyDetail(data) {
    return request({
        url:'/api/v1/car/info',
        method: 'get',
        params:{...data}
    });
}





//用户类型
export function userType(data) {
    return request({
        url:'/api/web/dict/getUserType',
        method: 'get',
        params:{...data}
    });
}

//用户列表
export function userList(data) {
    return request({
        url:'/api/web/user/page',
        method: 'get',
        params:{...data}
    });
}
//添加用户
export function userAdd(data) {
    return request({
        url:'/api/web/user/add',
        method: 'post',
        data
    });
}
//修改用户
export function userUpdate(data) {
    return request({
        url:'/api/web/user/update',
        method: 'post',
        data
    });
}

//删除用户
export function userDel(data) {
    return request({
        url:'/api/web/user/delete',
        method: 'DELETE',
        params:{...data}
    });
}

//重置用户密码
export function userInitPwd(data) {
    return request({
        url:'/api/web/user/initPwd',
        method: 'post',
        data
    });
}


//用户类型
export function unitType(data) {
    return request({
        url:'/api/web/dict/getOrgType',
        method: 'get',
        params:{...data}
    });
}
